package com.tank.jdk8.methodreference;

/**
 * Created with IntelliJ IDEA.
 * User: SuQiEr
 * Date:2017/1/26
 * Time: 19:39
 * To change this template use File | Settings | File Templates.
 */
public class AnimalComparator {

    public  int comparatorByAge(Animal animal,Animal animal2){
        return animal.getAge()-animal2.getAge();
    }
}

